var userInfoModule=angular.module('UserInfoModule',[]);
userInfoModule.controller('UserInfoCtrl',['$scope',function ($scope) {
    $scope.userInfo={
        email:'abcd@qq.com',
        password:'123456',
        autoLogin:true
    };
    $scope.getFormData=function () {
        console.log($scope.userInfo); 
    };
    $scope.setFormData=function () {
        $scope.userInfo={
            email:'xxxxx@163.com',
            password:'aaaaaaaaa',
            autoLogin:'false'
        }
    };
    $scope.resetForm=function(){
        $scope.userInfo={
            email:'abcd@qq.com',
            password:'123456',
            autoLogin:true
        };  
    };
}])